{% extends 'default.html' %}
{% load i18n %}
{% block content %}
	<h3>{% trans 'Questions' %}</h3>
	<ul class="question_list">
		{% for question in object_list %}
			<li id="{{ question.slug }}">
				<h4><a href="{{ question.get_absolute_url }}#{{ question.slug }}">{{ question.question }}</a></h4>
				<p>{{ question.answer }}</p>
			</li>
		{% endfor %}
	</ul>
	<h3>{% trans 'Topics' %}</h3>
	<ul class="topic_list">
		<li id="topic_all"{% if not current_topic %} class="selected"{% endif %}>
			{% if current_topic %}<a href="{% url faq.views.question_list %}">{% else %}<strong>{% endif %}
				{% trans 'All Questions' %}
			{% if current_topic %}</a>{% else %}</strong>{% endif %}
		</li>
		{% for topic in topics %}
			<li id="topic_{{ topic.slug }}"{% ifequal current_topic topic %} class="selected"{% endifequal %}>
				{% ifnotequal current_topic topic %}<a href="{{ topic.get_absolute_url }}">{% else %}<strong>{% endifnotequal %}
					{{ topic }}
				{% ifnotequal current_topic topic %}</a>{% else %}</strong>{% endifnotequal %}
			</li>
		{% endfor %}
	</ul>
	<form action="{% url faq.views.question_form %}" method="post">
		{% include template_form %}
	</form>
{% endblock %}
